@import "./base";
@import "./footer";
@import "./header";

main{
    width: 100%;
    .a-car{
        position: fixed;
        width: 55px;
        height: 50px;
        top: 360px;
        right: 0;
        background-color: rgba(0,0,0,0.5);
        i{
            display: inline-block;
            background-image: url(/img/s5.png);
            background-position: -391px -81px;
            width: 23px;
            height: 23px;
            margin-left: 17px;
            margin-top: 13px;
        }
        span{
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 10px;
            background: rgba($color: #ff6b01, $alpha: 1.0);
            left: 34px;
            text-align: center;
            line-height: 20px;
        }
    }
    .shop{
        width: 1150px;
        margin: 0 auto;
        background-color: #fff;
        margin-top: 30px;
        .crumbs{
            width: 96%;
            margin: 0 auto;
            height: 60px;
            line-height: 60px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            >a{
                font-size: 16px;
                color: #333;
                text-decoration: none;
            }
        }
    }
    .detail-intro{
        overflow: hidden;
        width: 1150px;
        margin: 0 auto;
        background: #fff;
        padding-bottom: 40px;
        .intro-left{
            position: relative;
            margin-top: 20px;
            float: left;
            margin-left: 20px;
            width: 400px;
            height: 500px;
            .small-box{
                position: relative;
                width: 400px;
                height: 400px;
                margin: 5px auto;
                position: relative;
                img{
                    width: 100%;
                    height: 100%;
                }
                span{
                    display: none;
                    position: absolute;
                    width: 150px;
                    height: 150px;
                    background: palevioletred;
                    left: 0;
                    top: 0;
                    opacity: .5;
                }
            }
            .big-box{
                display: none;
                overflow: hidden;
                position: absolute;
                left: 400px;
                top: 5px;
                z-index: 5;
                width: 400px;
                height: 400px;
                border: 1px solid #e4e4e4;
                img{
                    position: absolute;
                    left: 0;
                    top: 0;
                }
            }
            .detail-thumbnail{
                li{
                    float: left;
                    margin: 0 4px;
                    cursor: pointer;
                    width: 22.5%;
                    height: 90px;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                    &:nth-child(1){
                        margin-left: 5px;
                    }
                    &.ac{
                        border: 1px solid cornflowerblue;
                    }
                    &:hover{
                        border: 1px solid cornflowerblue;
                    }
                }
            }
        }
        .intro-right{
            float: left;
            width: 49.5%;
            margin-left: 5%;
            &>h3{
                font-size: 27px;
                margin-top: 18px;
                color: #333;
                font-weight: normal;
            }
            .intro-content{
                display: block;
                font-size: 15px;
                margin-top: 21px;
                margin-bottom: 20px;
                color: #666;
                line-height: 24px;
                white-space: pre-wrap;
            }
            .detail-option{
                &>p{
                    margin-bottom: 21px;
                    font-size: 0;
                }
                .detail-block{
                    padding: 25px 20px;
                    background-color: rgba(238,238,238,0.3);
                    margin-bottom: 21px;
                    &>p{
                        margin-bottom: 21px;
                        font-size: 0;
                    }
                    .detail-option-price{
                        &>span{
                            font-size: 26px;
                            color: #f35356;
                            .present-price{
                                font-size: 31px;
                                color: #f3535b;
                                margin-right: 12px;
                                font-weight: bold;
                            }
                            .origin-price{
                                text-decoration: line-through;
                                color: #999;
                                font-size: 15px;
                            }
                        }
                    }
                    .server-intro{
                        font-size: 12px;
                        color: #959595;
                        margin-bottom: 0;
                        label{
                            color: #666;
                            font-size: 15px;
                            margin-right: 8px;
                        }
                        &>span{
                            margin-right: 16px;
                        }
                        &>span::before{
                            content: '';
                            display: inline-block;
                            width: 4px;
                            height: 4px;
                            background-color: #ff6b01;
                            border-radius: 2px;
                            margin-right: 8px;
                            vertical-align: middle;
                        }
                    }
                }
                .detail-option-num{
                    label{
                        color: #666;
                        font-size: 15px;
                        margin-right: 8px;
                    }
                    span{
                        display: inline-block;
                        height: 35px;
                        width: 35px;
                        text-align: center;
                        font-size: 14px;
                        line-height: 35px;
                        border: 1px solid #999;
                        cursor: pointer;
                        &:hover{
                            border-color: #f35356;
                        }
                    }
                    .option-num-reduce i {
                        vertical-align: middle;
                        display: inline-block;
                        background-image: url(../img/s4.png);
                        background-position: -412px -243px;
                        width: 9px;
                        height: 1px;
                    }
                    input{
                        display: inline-block;
                        height: 35px;
                        width: 35px;
                        text-align: center;
                        font-size: 14px;
                        line-height: 35px;
                        outline: none;
                        border: none;
                        border: 1px solid #999;
                        cursor: pointer;
                        &.detail-commodity-num{
                            width: 61px;
                            vertical-align: top;
                            border-right: 0;
                            border-left: 0;
                            cursor: auto;
                        }
                    }
                    .option-num-add i{
                        display: inline-block;
                        background-image: url(../img/s4.png);
                        background-position: -340px -180px;
                        width: 9px;
                        height: 9px;
                    }
                }
                .detail-option-btn{
                    padding-bottom: 20px;
                    border-bottom: 1px solid rgba(255,255,255,0.05);
                    .buy-now{
                        outline: none;
                        border: none;
                        border-radius: 1px;
                        color: #fff;
                        background-color: transparent;
                        background-image: url(/img/s4.png);
                        background-position: 0px -180px;
                        width: 170px;
                        height: 58px;
                        font-size: 20px;
                        cursor: pointer;
                        margin-right: 25px;
                    }
                    .join-cart{
                        border: none;
                        color: #f35356;
                        background-image: url(/img/s4.png);
                        background-position: 0px 0px;
                        width: 178px;
                        height: 58px;
                        height: 58px;
                        font-size: 20px;
                        background-color: transparent;
                        cursor: pointer;
                        margin-right: 25px;
                        outline: none;
                    }
                }
                .share-wrap{
                    position: relative;
                    margin-top: 15px;
                    a{
                        display: inline-block;
                        height: 30px;
                        width: 80px;
                        font-size: 14px;
                        color: #666;
                        i{
                            display: inline-block;
                            background-image: url(/img/fenx.png);
                            background-size: 18px 18px;
                            vertical-align: middle;
                            width: 18px;
                            height: 18px;
                            margin-right: 8px;
                        }
                    }
                    .share-content{
                        display: none;
                        position: absolute;
                        padding: 6px 9px;
                        font-size: 24px;
                        top: 25px;
                        border: 1px solid #e6e6eb;
                        box-shadow: 0px 1px 4px 0px #ddd;
                        cursor: default;
                        .share-top-1{
                            position: absolute;
                            top: -16px;
                            left: 35px;
                            color: #e6e6eb;
                            cursor: default;
                        }
                        .share-top-2{
                            position: absolute;
                            top: -14.5px;
                            left: 35px;
                            color: #fff;
                            cursor: default;
                        }
                        .icon-share{
                            background: url(/img/logos.png) no-repeat;
                            display: inline-block;
                            width: 25px;
                            height: 25px;
                            vertical-align: top;
                            margin-right: 1px;
                            margin-left: 1px;
                        }
                        .i-myq{
                            background-position: -78px -27px;
                        }
                        .i-weibo{
                            background-position: 0 -52px;
                        }
                        .i-wechat{
                            background-position: -78px 0;
                        }
                        .i-zone{
                            background-position: 0 0;
                        }
                    }
                }
            }
        }
    }
    .shop-datail{
        position: relative;
        width: 1150px;
        margin: 0 auto;
        h4{
            float: left;
            // position: absolute;
            // left: 0;
            width: 100%;
            height: 54px;
            line-height: 54px;
            font-weight: normal;
            background-color: #f9f9f9;
            margin-bottom: 0px;
            span{
                display: inline-block;
                height: 51px;
                width: 118px;
                border-top: 3px solid #f35356;
                line-height: 51px;
                color: #333;
                background-color: #fff;
                text-align: center;
                font-size: 17px;
            }
        }
        &-pic{
            float: left;
            width: 1150px;
            min-height: 400px;
            margin: 0 auto;
            text-align: center;
            background: #fff;
            img{
                width: 85%;
                height: 100%;
            }
        }
    }
}